Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Test widgets on travis #1417

Merged
merged 10 commits into from
Jul 14, 2016
Merged

[ENH] Test widgets on travis #1417

merged 10 commits into from
Jul 14, 2016

Conversation

astaric
Copy link
Member

@astaric astaric commented Jul 5, 2016

This PR contains fixes for (random) segfaults related to gui tests on travis, as well as (slightly modified) tests from #1262 and #1334.

@codecov-io
Copy link

codecov-io commented Jul 5, 2016

Current coverage is 87.93%

Merging #1417 into master will increase coverage by 0.01%

@@             master      #1417   diff @@
==========================================
  Files            77         77          
  Lines          7582       7582          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6666       6667     +1   
+ Misses          916        915     -1   
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by 4a484f6...fa8f13b

@astaric astaric force-pushed the gui-tests branch 2 times, most recently from 880e87d to 61b6b8e Compare July 6, 2016 09:32
@astaric astaric changed the title [ENH] Test widgets on travis [WIP] [ENH] Test widgets on travis Jul 7, 2016
app.processEvents()
for w in cls.widgets:
w.onDeleteWidget()
sip.delete(w)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work if you just put a destructor on OWWidget:

def __del__(self):
    if not sip.isdeleted(self):
        sip.delete(self)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, no.

@astaric astaric changed the title [WIP] [ENH] Test widgets on travis [ENH] Test widgets on travis Jul 14, 2016
Keeps track of created widgets and makes sure they are properly
disposed, thus avoiding segmentation faults. Provides a simple signal
manager that can be used to set inputs and get output values.
@astaric astaric force-pushed the gui-tests branch 2 times, most recently from 2900244 to 75c01fa Compare July 14, 2016 09:52
@kernc kernc merged commit ee78a7e into biolab:master Jul 14, 2016
@astaric astaric deleted the gui-tests branch September 8, 2017 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants